var e = require;
var t = module;
var n = exports;
"use strict";
Object.defineProperty(n, "__esModule", { value: !0 }), n.Config = void 0;
o.prototype.preload = function(e) { this.list[e] || cc.resources.preload(e) }, o.prototype.get = function(o) {
    var i = this;
    return new Promise(function(n) {
        if (console.log("path==", o), i.list[o]) return n(i.list[o]);
        cc.resources.load(o, function(e, t) { return e ? console.warn(e) : (i.list[o] = i.parseData(t.json), n(i.list[o])) })
    })
}, o.prototype.parseData = function(e) {
    for (var t = {}, n = 0; n < e.values.length; n++) t["" + e.values[n][0]] = e.values[n];
    for (var o = e.values.length, i = [], n = 0; n < o; n++) {
        for (var r = t["" + (n + 1)], y = {}, a = 0; a < r.length; a++) y["" + e.keys[a]] = r[a];
        i.push(y)
    }
    return i
}, t = o;

function o() { this.list = {} }
n.Config = new t